package com.project.controller;

import com.project.bean.ClassBean;
import com.project.service.IClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 班级应用控制器
 */
@RestController
@RequestMapping("class")
public class ClassController {
    @Autowired
    private IClassService service;
    @RequestMapping("findAll")
    public List<ClassBean> findAll(){
        return service.findAll();
    }
}
